#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>

int main()
{
	int(*p)[5] = (int(*)[5])malloc(3 * 5 * sizeof(int));
	int i = 0;
	int j = 0;
	if (p != NULL)
	{
		for (i = 0; i < 3; i++)
		{
			for (j = 0; j < 5; j++)
			{
				printf("%d ",p[i][j] = 0);
			}
			printf("\n");
		}
		free(p);
		p = NULL;
	}
	return 0;
}